package com.yckj.day06;

/**
 * TODO
 *
 * @author shengyuee
 * @version 1.0
 * 2025/7/23 11:23
 */
public class StudentTest {
    public static void main(String[] args) {
        Student student = new Student("张三");
        int age = student.getAge();
        System.out.println("age = " + age);
        // 匿名对象，没有名字的对象
        int age1 = new Student("李四").getAge();
        System.out.println("age1 = " + age1);

    }
}
